#include <iostream>
#include <string>
#include "httplib.h"
#define PORT 9090
#define PAST "47.107.49.227"

int main(){
    httplib::Client cli(PAST, PORT);
    auto s1 = cli.Get("/Hi");
    std::cout << s1->status << std::endl;
    std::cout << s1->body << std::endl;

    auto s2 = cli.Get("/hello/9090");
    std::cout << s2->status << std::endl;
    std::cout << s2->body << std::endl;

    httplib::MultipartFormDataItems mfdi = {{"file", "hello multipart", "test.txt","text/plain"}};
    
    auto s3 = cli.Post("/upload",mfdi);
    std::cout << s3->status << std::endl;
    std::cout << s3->body << std::endl;
    return 0;
}